const { mongoose } = require("./db");
const Schema = mongoose.Schema;


const chatgptSchema = new Schema({
  avator: {
    type: String,
    default: "",
  },
  airTitle: {
    type: String,
    default: "",
  },
  state: {
    type: Number,
    default: 1,
  },
  cloudID: {
    type: String,
    default: "",
  },
  imageUrl: {
    type: String,
    default: "",
  },
});

const chatgptModel = mongoose.model("chatgpt", chatgptSchema);

// chatgptModel.create(
//   {
//     avator: "http://localhost:3461/uploads/nanys.png",
//     airTitle:
//       "你好！很高兴认识你，我是您的智能健康顾问，有什么我可以帮您的吗？",
//     state: 1,
//   }
// );

module.exports = { chatgptModel };
